package leetcode.offer;

/**
 * ClassName: Offer15_HammingWeight
 * Description: leetcode-剑指offer 15 二进制中1的个数
 * date: 2021-11-16 22:28
 *
 * @author liyifan
 */
public class Offer15_HammingWeight {
    public int hammingWeight(int n) {
        return Integer.bitCount(n);
    }
}
